<%@ Page Language="C#" MasterPageFile="~/MP/Classic.master" AutoEventWireup="true"
    Inherits="ConfigCusto_AddOrDeleteStyle" CodeBehind="AddStyle.aspx.cs" RoleHint="Administrator" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" runat="Server">
    <h1>
        Preferences</h1>
    <p>
        Add styles to your configuration.</p>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        Name:
                    </td>
                    <td>
                        <asp:TextBox ID="styleNameTextBox" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="nameRequiredFieldValidator" runat="server" ErrorMessage="Please enter a name for the style"
                            ControlToValidate="styleNameTextBox" class="error">Please enter a name for the style</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Url:
                    </td>
                    <td>
                        <asp:TextBox ID="styleUrlTextBox" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="urlRequiredFieldValidator" runat="server" ErrorMessage="Please enter a url"
                            ControlToValidate="styleUrlTextBox" class="error">Please enter a url</asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
            <br />           
            <asp:Button ID="AddButton" runat="server" Text="Add Style" OnClick="AddButton_Click" />
            <asp:LinkButton ID="DemoLinkButton" runat="server" CausesValidation="False" 
                onclick="DemoLinkButton_Click" Text="[demo]" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
